package com.example.homework

import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.tooling.preview.Preview
import com.example.homework.databinding.ActivityMainBinding

class MainActivity : ComponentActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        var binding = ActivityMainBinding.inflate(layoutInflater)
        setContentView(binding.root)
        binding.firstPost.setUpperText("This is a first post")
        binding.firstPost.setLowerText("This is a description of first post")

        binding.secondPost.setUpperText("This is a second post")
        binding.secondPost.setLowerText("This is a description of second post")

        binding.thirdPost.setUpperText("This is a third post")
        binding.thirdPost.setLowerText("This is a description of third post")
    }
}